package service.manage.impl;

import java.util.List;

import model.app.AppFinance;

import dao.app.AppFinanceDao;
import service.manage.FinanceService;

public class FinanceServiceImpl implements FinanceService{
	private AppFinanceDao financeDao;

	@Override
	public List<?> getFinanceList() {
		return financeDao.findModel("id>0 order by financedate desc",10);
	}

	@Override
	public void save(AppFinance finance) {
		financeDao.save(finance);		
	}
	
	@Override
	public AppFinance getFinance(String id) {
		return financeDao.findByOne("id="+id);
	}
	
	public AppFinanceDao getFinanceDao() {
		return financeDao;
	}

	public void setFinanceDao(AppFinanceDao financeDao) {
		this.financeDao = financeDao;
	}



}
